#include "OiPCH.hpp"

namespace Oi
{
    namespace PLScannerCore
    {

        QColor PLScannerStyle::TitleBackgroundColor()
        {
            if (PLScanner::instance()->themeName == QLatin1Literal("Aqua2007"))
            {
                return QColor("#a1a6b3");
            }
            else
            {
                return QColor("#444444");
            }
        }

        QColor PLScannerStyle::TitleForegroundColor()
        {
            if(PLScanner::instance()->themeName == QLatin1Literal("Aqua2007"))
            {
                return QColor("#154a93");
            }
            else
            {
                return QColor("#ffffff");
            }
        }

        QColor PLScannerStyle::ImageViewerBgColor()
        {
            if(PLScanner::instance()->themeName == QLatin1Literal("Aqua2007"))
            {
                return QColor("#e1e3ec");
            }
            else
            {
                return QColor(24, 24, 24);
            }
        }

        QColor PLScannerStyle::ChartBgColor()
        {
            if(PLScanner::instance()->themeName == QLatin1Literal("Aqua2007"))
            {
                return QColor("#e1e3ec");
            }
            else
            {
                return QColor(32, 32, 32);
            }
        }

        QColor PLScannerStyle::ChartViewerBgColor()
        {
            if(PLScanner::instance()->themeName == QLatin1Literal("Aqua2007"))
            {
                return QColor(196, 202, 217);
            }
            else
            {
                return Qt::black;
            }
        }

        int PLScannerStyle::ChartDefaultTheme()
        {
            if(PLScanner::instance()->themeName == QLatin1Literal("Aqua2007"))
            {
                return 0;
            }
            else
            {
                return 2;
            }
        }

        QColor PLScannerStyle::ChartCheckboxColor()
        {
            if(PLScanner::instance()->themeName == QLatin1Literal("Aqua2007"))
            {
                return Qt::black;
            }
            else
            {
                return Qt::white;
            }
        }

        QColor PLScannerStyle::ChartLineColor()
        {
            if(PLScanner::instance()->themeName == QLatin1Literal("Aqua2007"))
            {
                return Qt::black;
            }
            else
            {
                return Qt::white;
            }
        }

        QColor PLScannerStyle::ChartTextColor()
        {
            if(PLScanner::instance()->themeName == QLatin1Literal("Aqua2007"))
            {
                return Qt::black;
            }
            else
            {
                return Qt::white;
            }
        }

        QColor PLScannerStyle::windowTextColor()
        {
            if(PLScanner::instance()->themeName == QLatin1Literal("Aqua2007"))
            {
                return Qt::black;
            }
            else
            {
                return Qt::white;
            }
        }

        QColor PLScannerStyle::buttonBackgroundColor()
        {
            if(PLScanner::instance()->themeName == QLatin1Literal("Aqua2007"))
            {
                return QColor("#c4cad9");
            }
            else
            {
                return QColor("#fafbfd");
            }
        }

        QColor PLScannerStyle::buttonTextColor()
        {
            if(PLScanner::instance()->themeName == QLatin1Literal("Aqua2007"))
            {
                return QColor("#154a93");
            }
            else
            {
                return QColor("#154a93");
            }
        }

    }
}